package com.itheima.app.controller.cmsController;



import com.itheima.commons.R;
import com.itheima.domain.db.cms.CmsPrefrenceArea;
import com.itheima.service.cmsService.CmsPrefrenceAreaService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
public class CmsPrefrenceAreaController {

    @DubboReference
    private CmsPrefrenceAreaService cmsPrefrenceAreaService;

    @GetMapping("/prefrenceArea/listAll")
    public R findPrefrenceAreaList() {
        List<CmsPrefrenceArea> list = cmsPrefrenceAreaService.findPrefrenceAreaList();

        return R.ok(list);

    }

}